/*
 *	ApOS (Another Project software for s3c2410)
 *	
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License version 2 as
 *	published by the Free Software Foundation.
 *			
 *
 */
#ifndef _SERIAL_H
#define _SERIAL_H

#include <stdio.h>
#define INT_UART0_ENABLE 	(~(1<<28))
#define INT_UART0_DISABLE 	(1<<28)

#define INT_TXD0_DISABLE   	(0x1<<1)
#define INT_RXD0_DISABLE   	(0x1<<0)
#define INT_TXD0_ENABLE   	(~(0x1<<1))
#define INT_RXD0_ENABLE   	(~(0x1<<0))

#define	TXDREADY		(1<<2)
#define	RXDREADY		(1)

int uart0_config();
void uart0_interrupt_enabele();
void uart0_interrupt_disabele();
void uart0_interrupt_routine();
void uart0_send_byte(char data);
void uart_send_string(char *pt);

#endif

